# Date: 2013-12-28
check_package() {
echo "Checking Packages ..."
[ ! -f httpd-$httpdVer.tar.bz2 ] && wget http://mirror.bjtu.edu.cn/apache/httpd/httpd-$httpdVer.tar.bz2
#[ ! -f mysql-$mysqlVer.tar.gz ] && wget http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-$mysqlVer.tar.gz
[ ! -f $MySQLFileName.tar.gz ] && wget http://www.percona.com/redir/downloads/Percona-Server-5.5/LATEST/source/$MySQLFileName.tar.gz
[ ! -f php-$phpVer.tar.gz ] && wget http://uk.php.net/distributions/php-$phpVer.tar.gz
#[ ! -f phpMyAdmin-$pmVer-all-languages.tar.gz ] && wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/$pmVer/phpMyAdmin-$pmVer-all-languages.tar.gz
[ ! -f apr-1.4.8.tar.bz2 ] && wget http://mirror.bit.edu.cn/apache/apr/apr-1.5.0.tar.bz2
[ ! -f apr-util-1.5.2.tar.bz2 ] && wget http://mirror.bit.edu.cn/apache/apr/apr-util-1.5.3.tar.bz2
[ ! -f php-5.2.17.tar.gz ] && wget http://uk.php.net/distributions/php-5.2.17.tar.gz
#[ ! -f cmake-2.8.11.tar.gz ] && wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
[ ! -f libiconv-1.14.tar.gz ] && wget https://centos.googlecode.com/files/libiconv-1.14.tar.gz
[ ! -f libmcrypt-2.5.8.tar.gz ] && wget https://centos.googlecode.com/files/libmcrypt-2.5.8.tar.gz
[ ! -f mhash-0.9.9.9.tar.gz ] && wget https://centos.googlecode.com/files/mhash-0.9.9.9.tar.gz
[ ! -f mcrypt-2.6.8.tar.gz ] && wget https://centos.googlecode.com/files/mcrypt-2.6.8.tar.gz
#[ ! -f libevent-2.0.21-stable.tar.gz ] && wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
#[ ! -f memcache-3.0.8.tgz ] && wget http://pecl.php.net/get/memcache-3.0.8.tgz
#[ ! -f memcached-1.4.15.tar.gz ] && wget http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
[ ! -f PDO_MYSQL-1.0.2.tgz ] && wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
[ ! -f eaccelerator-0.9.6.1.tar.bz2 ] && wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
[ ! -f ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz ] && wget https://centos.googlecode.com/files/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
[ ! -f ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz ] && wget https://centos.googlecode.com/files/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
#wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
#wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
echo "Checking Packages Completed! "
}
